<?php
	 require_once 'lib/sql.utils.php';
	 $DEBUG = false;
	 $util = new SqlUtils();
	 $name = $_GET['name'];
	 $name = "'".$name."'";
	 $query = "SELECT diagram FROM diagrams WHERE name=".$name;
	 $rows = $util->getRows($query);
	 echo $rows[0]['diagram'];
?>